﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace hse_2013_test_dima_sasha
{
    internal class Trainee
    {
        private int Score = 0;
        private List<Question> WrongtAnsweredQuestions = new List<Question>();
        private List<Answers> WrongAnswers = new List<Answers>();
        private string Name;

        public Trainee()
        {
        }

        public Trainee(string name,int score, List<Question> WAQ, List<Answers> WA)
        {
            Name = name;
            Score = score;
            WrongtAnsweredQuestions = WAQ;
            WrongAnswers = WA;
        }

        public string GetName()
        {
            return Name;
        }

        public void SetName(string name)
        {
            Name = name;
        }

        public List<Question> GetWrong()
        {
            return WrongtAnsweredQuestions;
        }

        public void SetWrong(Question question)
        {
            WrongtAnsweredQuestions.Add(question);
        }

        public List<Answers> GetWrongAnswers()
        {
            return WrongAnswers;
        }

        public void SetWrongAnswer(string answer)
        {
           WrongAnswers.Add(new Answers(answer,false));
        }

        public void RemoveMistake(int index)
        {
            WrongtAnsweredQuestions.RemoveAt(index);
            WrongAnswers.RemoveAt(index);
        }

        public int GetScore()
        {
            return Score;
        }

        public void SetScore(int ball)
        {
            Score = Score + ball;
        }

        public void RemoveTrainee()
        {
            Score = 0;
            Name = "";
            WrongAnswers.Clear();
            WrongtAnsweredQuestions.Clear();
        }

    }
}